package com.dev.op.service;

import com.dev.op.entity.ProblemTag;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dev.op.entity.Tag;

import java.util.List;

/**
* @author Administrator
* @description 针对表【problem_tag】的数据库操作Service
* @createDate 2025-03-29 22:40:33
*/
public interface ProblemTagService extends IService<ProblemTag> {
    List<Tag> getTagsByProblemId(String problemId);
    Boolean updateProblemTag(String problemId,List<Tag> tags);
    Boolean deleteProblemTagByTagEntity(String problemId,List<Tag> tags);
    Boolean addProblemTagByTagEntity(String problemId,List<Tag> tags);
    Boolean deleteProblemTagAllTag(String problemId);
    Boolean addProblemTagAllTag(String problemId,List<Tag> tags);
    String getTagIdByTagName(String tagName);
}
